//
//  HabitRemindAlertView.h
//  habit
//
//  Created by huck on 16/6/21.
//  Copyright © 2016年 custom. All rights reserved.
//

#import "CustomIOSAlertView.h"

/**
 * 键盘类型
 */
typedef NS_ENUM(NSInteger, InputKeyboardType) {
    /**键盘类型-默认通用*/
    InputKeyboardTypeDefault = 0,
    /**键盘类型-数字小数点-限制2位小数*/
    InputKeyboardTypeDecimal = 1,
    /**键盘类型-纯数字键盘*/
    InputKeyboardTypeNumber = 2
};


typedef BOOL(^ModifyValueFinishBlock) (NSString *newValue);

@interface ModifyAlertView : CustomIOSAlertView

@property(nonatomic,copy) NSString *fieldValue;
@property(nonatomic,copy) NSString *title;
@property(nonatomic,copy) NSString *placeHolderText;//默认为空
@property(nonatomic) InputKeyboardType keyboardType;//不传默认是通用键盘

@property(nonatomic,copy) ModifyValueFinishBlock modifyCancelBlock;//取消修改回调
@property(nonatomic,copy) ModifyValueFinishBlock modifyFinishBlock;//完成修改回调

-(id)init;

@end



@interface ModifyAlertContainer:UIView

@property(nonatomic,copy) NSString *titleText;

@property(nonatomic,copy) NSString *fieldText;

@property(nonatomic) InputKeyboardType keyboardType;//不传默认键盘

@property(nonatomic,copy) NSString *placeHolderText;//默认为空

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UITextField *modifyField;



@end
